#include "State_New_Game.h"

NewGame* NewGame::init = 0;

void NewGame::Enter()
{
	cout << "Starting a new game. Initializing stuff.\n";
	choice = '0';
}

void NewGame::Execute(Game* g)
{
	cout << "This is where you make your new game happen.\n";
	cout << "1. Start Game\n";
	cout << "Select your choice: ";
	cin >> choice;
	switch(choice)
	{
	case '1':
		{
			cout << "Starting the campaign now\n";
			g->changeState(Campaign::Instance());
		}
		break;
	default:
		{
			cout << "That was not a choice\n";
		}
		break;
	}
}

void NewGame::Exit()
{
	cout << "Exiting State_New_Game\n";
}

NewGame* NewGame::Instance()
{
	if(init == 0)
	{
		init = new NewGame();
	}
	return init;
}